package com.datasure.types;

import lombok.Getter;

import javax.xml.bind.ValidationException;

/**
 * @author zhangxiaolong
 * @ClassName StringId.java
 * @Description
 * @createTime 2022年01月13日 15:06:00
 */
@Getter
public class StringId implements Identifier{
    private final String id;

    public StringId(String id) throws ValidationException{
        if(id == null || "".equals(id)){
            throw new ValidationException("ID不能为空");
        }
        this.id = id;
    }
}
